package com.lw.entity;

import lombok.Data;

import java.util.Date;
import java.util.UUID;

@Data
public class GoodsInfo {

    private Integer id;
    private String name;
    private String image;
    private String goods_description;
    private String tags;
    private Double price;
    private String address;
    private String call_way;
    private Date create_time;
    private Date update_time;
    private String goods_code;

    public static String generateGoodsCode(){
        UUID uuid = UUID.randomUUID();
        String goods_code = uuid.toString().replaceAll("-","");
        return goods_code;
    }
}
